package day0729.oopTest;

import java.sql.Driver;

class Driver1{//司机类
    String name;//司机名字
}



public class RedFlagCar {
    String model;
    int speed;
    String useWay;
    int  miles;
    public int run(Driver1 d){
        System.out.println("中南海保镖" + d.name + "正在开"+model+"车");
        miles=miles+10;
        return miles;
    }


    public int run(String driverName){
        System.out.println("中南海保镖" + driverName + "正在开"+model+"车");
        miles=miles+10;
        return miles;
    }
}



